package com.briup.ch07;

/**
 * @Author briup-adam
 * @Date 2023/10/10 上午10:17
 * @Description
 **/

public interface Action  extends  Runnable,Flyable {
    void sing();

}
class  ActionImpl  implements Action{

    @Override
    public void sing() {
        System.out.println("我又哼着");
    }

    @Override
    public void fly() {
        System.out.println("自由飞翔");
    }

    @Override
    public void run() {
        System.out.println("向前跑 迎着冷眼和嘲笑");
    }
}
class ActionImplTest {
    public static void main(String[] args) {
        Action action = new ActionImpl();
        Flyable flyable=new ActionImpl();
        Runnable runnable=new ActionImpl();
        action.fly();
        action.run();

    }
}
